home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
326-350
/
disk_339
/
pcq
/
include
/
audio.i
< prev
next >
Wrap
Text File
|
1992-05-06
|
1KB
|
54 lines
{
Audio.i
Defines the constants and types required to use the audio device
}
{$I "Include/ExecIO.i"}
{$I "Include/Ports.i"}
const
AUDIONAME = "audio.device";
ADHARD_CHANNELS = 4;
ADALLOC_MINPREC = -128;
ADALLOC_MAXPREC = 127;
ADCMD_FREE = CMD_NONSTD + 0;
ADCMD_SETPREC = CMD_NONSTD + 1;
ADCMD_FINISH = CMD_NONSTD + 2;
ADCMD_PERVOL = CMD_NONSTD + 3;
ADCMD_LOCK = CMD_NONSTD + 4;
ADCMD_WAITCYCLE = CMD_NONSTD + 5;
ADCMDB_NOUNIT = 5;
ADCMDF_NOUNIT = $20;
ADCMD_ALLOCATE = ADCMDF_NOUNIT + 0;
ADIOB_PERVOL = 4;
ADIOF_PERVOL = $10;
ADIOB_SYNCCYCLE = 5;
ADIOF_SYNCCYCLE = $20;
ADIOB_NOWAIT = 6;
ADIOF_NOWAIT = $40;
ADIOB_WRITEMESSAGE = 7;
ADIOF_WRITEMESSAGE = $80;
ADIOERR_NOALLOCATION = -10;
ADIOERR_ALLOCFAILED = -11;
ADIOERR_CHANNELSTOLEN = -12;
type
IOAudio = record
ioaRequest : IORequest;
ioaAllocKey : Short;
ioaData : Address;
ioaLength : Integer;
ioaPeriod : Short;
ioaVolume : Short;
ioaCycles : Short;
ioaWriteMsg : Message;
end;
IOAudioPtr = ^IOAudio;